<?php

namespace hth\api\v1;

use hth\Request;

class Order extends Request
{


    //创建订单
    public function createOrder(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/orderCreate';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //订单详情
    public function info(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/orderDetail';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //订单列表
    public function orderList(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/orderList';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //查询用户余额
    public function getNowMoney(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/getNowMoney';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //订单物流单号查询
    public function getLogistics(array $data=[]){
        $this->type='POST';
        $this->path='/oapi/getLogistics';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }
}